package org.lx.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.lx.nursing.domain.Room;
import org.lx.nursing.vo.RoomVo;

import java.util.List;

@Mapper
public interface RoomMapper extends BaseMapper<Room> {
    Room selectRoomById(Long id);

    List<Room> selectRoomList(Room room);

    int insertRoom(Room room);

    int updateRoom(Room room);

    int deleteRoomById(Long id);

    int deleteRoomByIds(Long[] ids);

    List<RoomVo> selectByFloorId(Long floorId);

    List<RoomVo> selectByFloorIdWithNur(Long floorId);

    RoomVo getRoomById(Long id);

    List<RoomVo> getRoomsWithDeviceByFloorId(Long floorId);
}
